home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
comm2
/
termsorc.lha
/
Extras
/
Source
/
gtlayout-source.lha
/
LT_Activate.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-24
|
829b
|
38 lines
/* GadTools layout toolkit
**
** Copyright © 1993-1995 by Olaf `Olsen' Barthel
** Freely distributable.
*/
#include "gtlayout_global.h"
VOID LIBENT
LT_Activate(REG(a0) LayoutHandle *handle,REG(d0) LONG id)
{
struct Gadget *gadget;
if(gadget = LTP_FindGadget(handle,id))
{
ObjectNode *node;
if(GETOBJECT(gadget,node))
{
if(!node -> Disabled)
{
if(LIKE_STRING_KIND(node) || (node -> Type == INTEGER_KIND) || (node -> Type == BOOPSI_KIND && node -> Special . BOOPSI . ActivateHook))
{
handle -> Previous = gadget;
if(node -> Type == BOOPSI_KIND)
{
if(node -> Special . BOOPSI . ActivateHook)
CallHookPkt(node -> Special . BOOPSI . ActivateHook,(APTR)handle,node -> Host);
}
else
ActivateGadget(handle -> Previous,handle -> Window,NULL);
}
}
}
}
}